package com.hzncc.flowable_diboot.service.invoicemanage.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.github.jeffreyning.mybatisplus.service.MppServiceImpl;
import com.hzncc.flowable_diboot.entity.invoicemanage.Vbrk;
import com.hzncc.flowable_diboot.mapper.invoicemanage.VbrkMapper;
import com.hzncc.flowable_diboot.service.invoicemanage.VbrkService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@DS("sap")
@Service
public class VbrkServiceImpl extends MppServiceImpl<VbrkMapper, Vbrk> implements VbrkService {

    @Resource
    private VbrkMapper vbrkMapper;

    @Override
    public List<Vbrk> getVbrkList(String crmflaggw) {
        return vbrkMapper.getVbrkList(crmflaggw);
    }

    @Override
    public Boolean updateCrmflaggw(String crmflaggw,String vkorg, String fkart, String vbelnVf, String posnrVf) {
        return vbrkMapper.updateCrmflaggw(crmflaggw, vkorg, fkart, vbelnVf, posnrVf);
    }

    @Override
    public Long getCount(QueryWrapper queryWrapper) {
        return vbrkMapper.selectCount(queryWrapper);
    }
}
